package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
public class User {

    @TableId(type= IdType.AUTO)
    private int id;
    private String sex;
    private String name;

    private String username;
    private String password;

    @Version
    private Integer version;

    @TableField(value="create_time",fill = FieldFill.INSERT)
    private Date createTime;

}
